AEGetTheCurrentEvent
AppleEvent * theAppleEvent ; the Apple Event to be gotten is currently being handled.
currently being handled. In many applications, the handling of an
Apple event involves one or more long chains of calls to routines within the
these calls to include the current Apple event as a parameter; the routines can
is needed.
Apple event is currently being handled. For example, if your application
always uses an application- defined routine to delete a file, that routine can
determine whether an Apple event is currently being handled by calling
no Apple event is currently being handled.
This function returns the Apple event that is currently being handled in the
parameter theAppleEvent.
Result codes
noErr (0) No error